//
//  NSString+STString.h
//  ShaBaoOnline
//
//  Created by huang yong on 16/7/11.
//  Copyright © 2016年 com.ShaBaoOnline.www. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (STString)
//得到后四位
+ (NSString *)cutOutLastFourStr:(NSString *)cardStr WithNum:(NSInteger)num;
//得到前一天:
+ (NSString *)getYesterdaywithStr:(NSString *)bill_timeStr;


+ (BOOL)isPureInt:(NSString *)string;
- (BOOL)stringIsEmpty;

- (NSString *)MD5;

- (BOOL)validateNumberByASCII:(NSString *)string;
//邮箱判断
- (BOOL)isValidateEmail;
//数字和字母
- (BOOL)isValidateNumAndA;

-(BOOL)validateMobile;
-(BOOL)validateIdentityCard;
-(BOOL)validatePassword;
-(BOOL)validatePhoneCode;

////认证使用
- (NSString *)Base64EncodedStringFromString:(NSString *)string;

//身份证合法性判断最终版;
+ (BOOL)validateTruePeopleIDCode:(NSString *)identityCard;

//是否有中文
- (BOOL)validateChinese;

//判断数字
- (BOOL)validateNumberByRegExp;
@end
